/**
 * 
 */
package fr.isima.isipaint.controllers;

import java.awt.Color;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import fr.isima.isipaint.model.Scene;

/**
 * @author daniel
 * 
 */
public class ColorChangeListener implements ChangeListener {

	/** The model */
	private Scene scene;

	public ColorChangeListener(Scene scene) {
		this.scene = scene;
	}

	@Override
	public void stateChanged(ChangeEvent e) {
		// TODO change color from JColorChooser
		scene.setColor(Color.BLUE);
		

	}

}
